﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 8/25/2009
 * Time: 10:28 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using NHibernate;
using NHibernate.Cfg;

namespace PilotFish.Model
{
	/// <summary>
	/// Description of NHibernateHelper.
	/// </summary>
	public class NHibernateHelper
	{
		static ISessionFactory factory = new Configuration().Configure().BuildSessionFactory();
		static ISession session = factory.OpenSession();
		
		public NHibernateHelper()
		{
		}
		
		public static ISession OpenSession()
		{
			return session;
		}
	}
}
